Platform Explorer / Nuxeo Platform 6.0

Operation Picture.resize (Resize a picture)

Description

Use conversion servcie to resize a picture contained in a Document or a Blob
Operation id Picture.resize
Category Conversion
Label Resize a picture
Requires
Since

Parameters

Name Description Type Required Default value
maxHeight int yes  
maxWidth int yes  

Signature

Inputs blob, document
Outputs blob, blob

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.services.PictureResize
Contributing Component org.nuxeo.ecm.core.automation.featuresContrib

JSON Definition

{
  "id" : "Picture.resize",
  "label" : "Resize a picture",
  "category" : "Conversion",
  "requires" : null,
  "description" : "Use conversion servcie to resize a picture contained in a Document or a Blob",
  "url" : "Picture.resize",
  "signature" : [ "blob", "blob", "document", "blob" ],
  "params" : [ {
    "name" : "maxHeight",
    "description" : null,
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "maxWidth",
    "description" : null,
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}